package com.nie.mybatisPlus.generator.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 部门表
 * </p>
 *
 * @author nie_chao_qun
 * @since 2022-11-23
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("dept")
@ApiModel(value = "Dept对象", description = "部门表")
public class Dept implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("部门Id")
    @TableId("dept_id")
    private Long deptId;

    @ApiModelProperty("部门名称")
    @TableField("dept_name")
    private String deptName;

    @ApiModelProperty("删除标识,0.未删除 1.删除")
    @TableField("deleted")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty("租户id")
    @TableField("tenant_id")
    private Long tenantId;
}
